package com.twu.biblioteca.commands;

import com.twu.biblioteca.Biblioteca;

import java.io.InputStream;
import java.io.PrintStream;

public abstract class BibliotecaCommand {
    public static final String BOOK_TITLE_PROMPT = "What is the book called?: ";
    public static final String MOVIE_TITLE_PROMPT = "What is the movie called?: ";
    public static final String NOT_LOGGED_IN = "You are not logged in!";

    protected InputStream input;
    protected PrintStream output;
    protected Biblioteca biblioteca;
    protected String description;

    protected BibliotecaCommand(String description, InputStream input, PrintStream output, Biblioteca biblioteca) {
        this.description = description;
        this.input = input;
        this.output = output;
        this.biblioteca = biblioteca;
    }

    public String getDescription() {
        return this.description;
    }

    public abstract boolean run();
}
